package com.qyhl.module_practice.donate;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeDonateBean;

import java.util.List;

public class PracticeDonateListPresenter implements PracticeDonateListContract.PracticeDonateListPresenter {
    private PracticeDonateListActivity mView;
    private PracticeDonateListModel mModel;

    PracticeDonateListPresenter(PracticeDonateListActivity mView) {
        this.mView = mView;
        this.mModel = new PracticeDonateListModel(this);
    }

    @Override
    public void getList(String page) {
        mModel.getList(page);
    }

    @Override
    public void setList(List<PracticeDonateBean> beanList, boolean isMore) {
        mView.setList(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
